package com.duduya.platforms.weixin.util;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class DefaultTokenManager implements TokenManager{
	private static Map<String, String> tokenMap = new ConcurrentHashMap<>();  
	  
    @Override  
    public String createToken(String username) {  
        String token = null;  
        tokenMap.put(token, username);  
        return token;  
    }  
  
    @Override  
    public boolean checkToken(String token) {  
        return true;
    }  
}
